<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Программа приема сигнальной информации: Исходный файл /home/student/rostovcev_sergey/program/2024_winter/pk_irpsi_rrv/client/src/mainwindow.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Программа приема сигнальной информации
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Программный комплекс имитации регистрации и представления сигнальной информации в режиме реального времени</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Создано системой Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Поиск');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Поиск');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">mainwindow.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="mainwindow_8h.html">См. документацию.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef MAINWINDOW_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define MAINWINDOW_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;qmainwindow.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;qtcpsocket.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;qsqlquery.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;qsqldatabase.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;qdebug.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;qtextbrowser.h&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;qtimer.h&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;QTime&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;qfile.h&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;qdir.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;QProcess&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="isi_8h.html">isi.h</a>&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="namespace_ui.html">   78</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_ui.html">Ui</a> {</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keyword">class </span><a class="code" href="class_main_window.html">MainWindow</a>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;}</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_main_window.html">   90</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_main_window.html">MainWindow</a> : <span class="keyword">public</span> <a class="code" href="class_q_main_window.html">QMainWindow</a></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    Q_OBJECT</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_main_window.html">MainWindow</a>(QWidget *parent = 0);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    ~<a class="code" href="class_main_window.html">MainWindow</a>();</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">private</span> slots:</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordtype">void</span> on_pushButton_clicked();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">void</span> on_lineEdit_returnPressed();</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_main_window.html#a35466a70ed47252a0191168126a352a5">  110</a></span>&#160;    Ui::MainWindow *<a class="code" href="class_main_window.html#a35466a70ed47252a0191168126a352a5">ui</a>;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_main_window.html#a6ac54bc22241708d7ef4bb6fb621d913">  114</a></span>&#160;    QTcpSocket *<a class="code" href="class_main_window.html#a6ac54bc22241708d7ef4bb6fb621d913">d_socket</a>;</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_main_window.html#aaad642375d59e14701973957aac379f9">  118</a></span>&#160;    QByteArray <a class="code" href="class_main_window.html#aaad642375d59e14701973957aac379f9">data</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">void</span> sendToServer(<span class="keywordtype">bool</span> status);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">void</span> delay(<span class="keywordtype">int</span> n);</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_main_window.html#a35b453e7aefded9f1b1c717040afba04">  132</a></span>&#160;    quint16 <a class="code" href="class_main_window.html#a35b453e7aefded9f1b1c717040afba04">d_nextBlockSize</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_main_window.html#a7d0228448e81f56566eeb1e593243f96">  136</a></span>&#160;    QSqlDatabase <a class="code" href="class_main_window.html#a7d0228448e81f56566eeb1e593243f96">d_db</a>;</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="class_main_window.html#a615cb0518a5c770cffefa8c1fd82a8cf">  140</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_main_window.html#a615cb0518a5c770cffefa8c1fd82a8cf">d_rowCount</a>;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_main_window.html#adf06a26e8f0a137359a98263e0cc56e7">  144</a></span>&#160;    <span class="keywordtype">int</span> d_writeRowCount = 0;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_main_window.html#a5c1f86a6b0d9ad083840cf08517e5fe0">  145</a></span>&#160;    <a class="code" href="class_isi.html">Isi</a>* <a class="code" href="class_main_window.html#a5c1f86a6b0d9ad083840cf08517e5fe0">d_isi</a>;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordtype">bool</span> parseMessageTypeFile(<span class="keyword">const</span> QString &amp;message);</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">bool</span> parseMessageTypeHeader(<span class="keyword">const</span> QString &amp;message);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordtype">bool</span> parseMessageTypeData(<span class="keyword">const</span> QString &amp;message);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="keyword">public</span> slots:</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> slotReadyRead();</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordtype">void</span> slotError(QAbstractSocket::SocketError);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;};</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#endif // MAINWINDOW_H</span></div><div class="ttc" id="namespace_ui_html"><div class="ttname"><a href="namespace_ui.html">Ui</a></div><div class="ttdef"><b>Definition:</b> mainwindow.h:78</div></div>
<div class="ttc" id="class_main_window_html_a6ac54bc22241708d7ef4bb6fb621d913"><div class="ttname"><a href="class_main_window.html#a6ac54bc22241708d7ef4bb6fb621d913">MainWindow::d_socket</a></div><div class="ttdeci">QTcpSocket * d_socket</div><div class="ttdoc">d_socket сокет клиента </div><div class="ttdef"><b>Definition:</b> mainwindow.h:114</div></div>
<div class="ttc" id="class_main_window_html_a5c1f86a6b0d9ad083840cf08517e5fe0"><div class="ttname"><a href="class_main_window.html#a5c1f86a6b0d9ad083840cf08517e5fe0">MainWindow::d_isi</a></div><div class="ttdeci">Isi * d_isi</div><div class="ttdef"><b>Definition:</b> mainwindow.h:145</div></div>
<div class="ttc" id="class_main_window_html_a35466a70ed47252a0191168126a352a5"><div class="ttname"><a href="class_main_window.html#a35466a70ed47252a0191168126a352a5">MainWindow::ui</a></div><div class="ttdeci">Ui::MainWindow * ui</div><div class="ttdef"><b>Definition:</b> mainwindow.h:110</div></div>
<div class="ttc" id="class_main_window_html_a615cb0518a5c770cffefa8c1fd82a8cf"><div class="ttname"><a href="class_main_window.html#a615cb0518a5c770cffefa8c1fd82a8cf">MainWindow::d_rowCount</a></div><div class="ttdeci">int d_rowCount</div><div class="ttdoc">d_rowCount количество строк в файле, который отправляет сервер </div><div class="ttdef"><b>Definition:</b> mainwindow.h:140</div></div>
<div class="ttc" id="class_main_window_html_aaad642375d59e14701973957aac379f9"><div class="ttname"><a href="class_main_window.html#aaad642375d59e14701973957aac379f9">MainWindow::data</a></div><div class="ttdeci">QByteArray data</div><div class="ttdoc">data данные для отправки на сервер </div><div class="ttdef"><b>Definition:</b> mainwindow.h:118</div></div>
<div class="ttc" id="class_q_main_window_html"><div class="ttname"><a href="class_q_main_window.html">QMainWindow</a></div></div>
<div class="ttc" id="class_isi_html"><div class="ttname"><a href="class_isi.html">Isi</a></div><div class="ttdoc">The Isi class Основной класс для получения информации из файла *.isi. </div><div class="ttdef"><b>Definition:</b> isi.h:14</div></div>
<div class="ttc" id="isi_8h_html"><div class="ttname"><a href="isi_8h.html">isi.h</a></div></div>
<div class="ttc" id="class_main_window_html_a35b453e7aefded9f1b1c717040afba04"><div class="ttname"><a href="class_main_window.html#a35b453e7aefded9f1b1c717040afba04">MainWindow::d_nextBlockSize</a></div><div class="ttdeci">quint16 d_nextBlockSize</div><div class="ttdoc">d_nextBlockSize размер следующего блока данных </div><div class="ttdef"><b>Definition:</b> mainwindow.h:132</div></div>
<div class="ttc" id="class_main_window_html"><div class="ttname"><a href="class_main_window.html">MainWindow</a></div><div class="ttdoc">The MainWindow class класс клиента </div><div class="ttdef"><b>Definition:</b> mainwindow.h:90</div></div>
<div class="ttc" id="class_main_window_html_a7d0228448e81f56566eeb1e593243f96"><div class="ttname"><a href="class_main_window.html#a7d0228448e81f56566eeb1e593243f96">MainWindow::d_db</a></div><div class="ttdeci">QSqlDatabase d_db</div><div class="ttdoc">d_db база данных для записи полученной информации </div><div class="ttdef"><b>Definition:</b> mainwindow.h:136</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Создано системой &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
